<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
    <title>登录</title>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/signin.css}" rel="stylesheet">
</head>
<body class="text-center">
<form class="form-signin" th:action="@{/loginIn}" method="post">
    <img th:src="@{/img/login.png}" class="mb-4" width="72" height="72">
    <h1 class="h3 mb-3 font-weight-normal">请登录</h1>
    <input class="form-control" type="text" name="num" placeholder="请输入账号" required onfocus="">
    <input class="form-control" type="password" name="password" placeholder="请输入密码" required>
    <div class="checkbox mb-3">
        <label style="position: absolute">
            <input type="checkbox" value="remember-me" name="remember_me">记住我
        </label>
    </div>
    <div id="result" th:text="${result}"></div>
    <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
    <p style="margin-top: -25px; position: absolute; right: 80px;">没有账号？</p>
    <a th:href="@{/user/register}" style="position: absolute; margin-top: -25px; right: 18px; color: #0066ff;">点击注册</a>
</form>
</body>
</html>